package api.demo05;

/**
 * @author lwj
 * @date 2025-03-07
 * @vesion 1.0.0
 */
public class MainTest {
    public static void main(String[] args) throws InterruptedException {
        // 第三：创建自定义线程对象
        MyThread myThread1 = new MyThread("线程一");
        MyThread myThread2 = new MyThread("线程二");

        // 第四：启动线程 - 调用线程对象的 run()
        myThread1.start();
        myThread2.start();
    }
}
